﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BonsaiScrum.Bus;
using BonsaiScrum.Core.Infrastructure;

namespace BonsaiScrum.Core.Persistance
{
    public class NullUnitOfWork : IUnitOfWork
    {
        private ILogger _logger;

        public NullUnitOfWork(ILogger logger)
        {
            _logger = logger;
        }

        public void Commit()
        {
            _logger.Debug("Committing the unit of work.");
        }

        public void Rollback()
        {
            _logger.Debug("Rolling back the unit of work.");
        }
    }
}
